package com.kayt.cyberBar.cuser.business.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.common.ServerResponse;
import com.kayt.cyberBar.cuser.business.entity.po.BUser;
import com.kayt.cyberBar.cuser.business.entity.req.vo.DepartReqVO;
import com.kayt.cyberBar.cuser.business.entity.rsp.vo.UserDetailRspVO;
import com.kayt.cyberBar.cuser.business.server.IDepartServer;
import com.kayt.cyberBar.cuser.business.service.IDepartService;

@Service("departService")
public class DepartServiceImpl implements IDepartService{
	@Autowired
	private IDepartServer departServer;
	@Override
	public ServerResponse<PageData<UserDetailRspVO>> getUserByDepart(DepartReqVO reqVO) {
		PageData<BUser> pageResult = departServer.getBuserByStoreAndDepart(reqVO);
		return departServer.assemble_result(pageResult);
	}

}
